class MyApp extends App {

    constructor() {
        super();
    }

    onCreate() {
        this.canvass = new Canvas(1)
        this.context = this.canvass.getContext();
        if (this.context) {
            this.context.fillText('Hello, from Skia Binding JS', 0, 100);
            this.context.fillText('我是中文', 0, 400);
        }
        this.canvass.commit();
        console.log('onCreate from js\n');
    }

    onResume() {
        console.log("onResume from js hello\n");
    }

    onPause() {
    }

    onStop() {

    }

    onDestroy() {

    }
}

var app = new MyApp();
registerApp(app);

